package com.cty.service.impl;

import com.cty.mapper.UserMapper;
import com.cty.pojo.User;
import com.cty.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: cty
 * @Date: 2020/3/5 22:10
 * @Description: 业务层实体类
 * @version: 1.0
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public UserMapper getUserMapper() {
        return userMapper;
    }

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<User> showAll() {
        return userMapper.selAll();
    }
}
